{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"NLU_multi_lingual_training_sentiment_classifier_demo_apple_twitter.ipynb","provenance":[],"collapsed_sections":[]},"kernelspec":{"display_name":"Python 3","name":"python3"}},"cells":[{"cell_type":"markdown","metadata":{"id":"RIV-9vEqxTBB"},"source":["![JohnSnowLabs](https://nlp.johnsnowlabs.com/assets/images/logo.png)\n","\n","[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/nlu/blob/master/examples//colab/Training/multi_lingual/binary_text_classification/NLU_multi_lingual_training_sentiment_classifier_demo_apple_twitter.ipynb)\n","\n","\n","\n","# Training a Sentiment Analysis Classifier with NLU \n","## 2 class Apple Tweets Sentiment Classifier Training\n","With the [SentimentDL model](https://nlp.johnsnowlabs.com/docs/en/annotators#sentimentdl-multi-class-sentiment-analysis-annotator) from Spark NLP you can achieve State Of the Art results on any multi class text classification problem \n","\n","This notebook showcases the following features : \n","\n","- How to train the deep learning classifier\n","- How to store a pipeline to disk\n","- How to load the pipeline from disk (Enables NLU offline mode)\n","\n","You can achieve these results or even better on this dataset with training  data  : \n","\n","<br> \n","\n","\n","![image.png]()\n","\n","\n","You can achieve these results or even better on this dataset with test data :\n","\n","<br>\n","\n","![image.png]()"]},{"cell_type":"code","metadata":{"id":"05-mAOF6ol-0","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1620195849229,"user_tz":-300,"elapsed":146589,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"05db6ea0-0d13-4f64-e84b-8039108710bd"},"source":["!wget https://setup.johnsnowlabs.com/nlu/colab.sh -O - | bash\n","  \n","\n","import nlu"],"execution_count":null,"outputs":[{"output_type":"stream","text":["--2021-05-05 06:21:47--  https://raw.githubusercontent.com/JohnSnowLabs/nlu/master/scripts/colab_setup.sh\n","Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n","Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 1671 (1.6K) [text/plain]\n","Saving to: ‘STDOUT’\n","\n","\r-                     0%[                    ]       0  --.-KB/s               Installing  NLU 3.0.0 with  PySpark 3.0.2 and Spark NLP 3.0.1 for Google Colab ...\n","\r-                   100%[===================>]   1.63K  --.-KB/s    in 0.001s  \n","\n","2021-05-05 06:21:47 (1.60 MB/s) - written to stdout [1671/1671]\n","\n","\u001b[K     |████████████████████████████████| 204.8MB 62kB/s \n","\u001b[K     |████████████████████████████████| 153kB 33.2MB/s \n","\u001b[K     |████████████████████████████████| 204kB 16.6MB/s \n","\u001b[K     |████████████████████████████████| 204kB 37.7MB/s \n","\u001b[?25h  Building wheel for pyspark (setup.py) ... \u001b[?25l\u001b[?25hdone\n"],"name":"stdout"}]},{"cell_type":"markdown","metadata":{"id":"f4KkTfnR5Ugg"},"source":["# 2. Download appple twitter  Sentiment dataset \n","https://www.kaggle.com/seriousran/appletwittersentimenttexts\n","\n","this dataset contains tweets made towards apple and today we are going to train our model to predict whether the tweet contains sentiment!\n"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"OrVb5ZMvvrQD","executionInfo":{"status":"ok","timestamp":1620195850046,"user_tz":-300,"elapsed":147289,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"0f73a43b-1d20-4238-8c91-6f4f74c19efe"},"source":["! wget http://ckl-it.de/wp-content/uploads/2021/02/apple-twitter-sentiment-texts_multi_lingual.csv\n"],"execution_count":null,"outputs":[{"output_type":"stream","text":["--2021-05-05 06:24:08--  http://ckl-it.de/wp-content/uploads/2021/02/apple-twitter-sentiment-texts_multi_lingual.csv\n","Resolving ckl-it.de (ckl-it.de)... 217.160.0.108, 2001:8d8:100f:f000::209\n","Connecting to ckl-it.de (ckl-it.de)|217.160.0.108|:80... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 48565 (47K) [text/csv]\n","Saving to: ‘apple-twitter-sentiment-texts_multi_lingual.csv’\n","\n","apple-twitter-senti 100%[===================>]  47.43K   237KB/s    in 0.2s    \n","\n","2021-05-05 06:24:09 (237 KB/s) - ‘apple-twitter-sentiment-texts_multi_lingual.csv’ saved [48565/48565]\n","\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":419},"id":"y4xSRWIhwT28","executionInfo":{"status":"ok","timestamp":1620195851135,"user_tz":-300,"elapsed":148342,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"95f12040-2d70-4227-a925-4cb63206df77"},"source":["import pandas as pd\n","train_path = '/content/apple-twitter-sentiment-texts_multi_lingual.csv'\n","\n","train_df = pd.read_csv(train_path)\n","# the text data to use for classification should be in a column named 'text'\n","# the label column must have name 'y' name be of type str\n","columns=['text','y']\n","train_df = train_df[columns]\n","train_df = train_df[~train_df[\"y\"].isin([\"neuteral\"])]\n","from sklearn.model_selection import train_test_split\n","train_df, test_df = train_test_split(train_df, test_size=0.2)\n","train_df"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>text</th>\n","      <th>y</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>233</th>\n","      <td>@Apple @iCloud Family in-app purchase approval...</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>120</th>\n","      <td>@apple#ipad #irig  For the price to connect my...</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>240</th>\n","      <td>@Apple Stop liking man.</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>28</th>\n","      <td>fucking @apple are memer FAGGOTS http://t.co/w...</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>236</th>\n","      <td>RT @gxldblvnts: thanking @apple for the 'do no...</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>...</th>\n","      <td>...</td>\n","      <td>...</td>\n","    </tr>\n","    <tr>\n","      <th>51</th>\n","      <td>I love @AIRMILES! Between @chaptersindigo &amp;amp...</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>210</th>\n","      <td>Take the stress out of looking for Christmas p...</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>98</th>\n","      <td>It would be nice if I could type more than one...</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>227</th>\n","      <td>Always so impressed with the customer service ...</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>104</th>\n","      <td>Goodbye graphics problems. Thank you @apple fo...</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","<p>228 rows × 2 columns</p>\n","</div>"],"text/plain":["                                                  text         y\n","233  @Apple @iCloud Family in-app purchase approval...  negative\n","120  @apple#ipad #irig  For the price to connect my...  negative\n","240                            @Apple Stop liking man.  negative\n","28   fucking @apple are memer FAGGOTS http://t.co/w...  negative\n","236  RT @gxldblvnts: thanking @apple for the 'do no...  positive\n","..                                                 ...       ...\n","51   I love @AIRMILES! Between @chaptersindigo &amp...  positive\n","210  Take the stress out of looking for Christmas p...  positive\n","98   It would be nice if I could type more than one...  negative\n","227  Always so impressed with the customer service ...  positive\n","104  Goodbye graphics problems. Thank you @apple fo...  positive\n","\n","[228 rows x 2 columns]"]},"metadata":{"tags":[]},"execution_count":3}]},{"cell_type":"markdown","metadata":{"id":"0296Om2C5anY"},"source":["# 3. Train Deep Learning Classifier using nlu.load('train.sentiment')\n","\n","You dataset label column should be named 'y' and the feature column with text data should be named 'text'"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":844},"id":"3ZIPkRkWftBG","executionInfo":{"status":"ok","timestamp":1620196278269,"user_tz":-300,"elapsed":575445,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"741613cd-e446-4981-8925-c8bd58b1338a"},"source":["trainable_pipe = nlu.load('xx.embed_sentence.labse train.sentiment')\n","# We need to train longer and user smaller LR for NON-USE based sentence embeddings usually\n","# We could tune the hyperparameters further with hyperparameter tuning methods like gridsearch\n","# Also longer training gives more accuracy\n","trainable_pipe['trainable_sentiment_dl'].setMaxEpochs(60)  \n","\n","trainable_pipe['trainable_sentiment_dl'].setLr(0.005) \n","fitted_pipe = trainable_pipe.fit(train_df)\n","# predict with the trainable pipeline on dataset and get predictions\n","preds = fitted_pipe.predict(train_df,output_level='document')\n","\n","#sentence detector that is part of the pipe generates sone NaNs. lets drop them first\n","preds.dropna(inplace=True)\n","from sklearn.metrics import classification_report\n","print(classification_report(preds['y'], preds['sentiment']))\n","\n","preds"],"execution_count":null,"outputs":[{"output_type":"stream","text":["labse download started this may take some time.\n","Approximate size to download 1.7 GB\n","[OK!]\n","sentence_detector_dl download started this may take some time.\n","Approximate size to download 354.6 KB\n","[OK!]\n","              precision    recall  f1-score   support\n","\n","    negative       0.97      0.97      0.97       108\n","    positive       0.97      0.97      0.97       120\n","\n","    accuracy                           0.97       228\n","   macro avg       0.97      0.97      0.97       228\n","weighted avg       0.97      0.97      0.97       228\n","\n"],"name":"stdout"},{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>text</th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>y</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>@Apple @iCloud Family in-app purchase approval...</td>\n","      <td>233</td>\n","      <td>0.999632</td>\n","      <td>[@Apple @iCloud Family in-app purchase approva...</td>\n","      <td>[-0.005896878894418478, 0.00783093087375164, 0...</td>\n","      <td>@Apple @iCloud Family in-app purchase approval...</td>\n","      <td>negative</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>1</th>\n","      <td>@apple#ipad #irig  For the price to connect my...</td>\n","      <td>120</td>\n","      <td>0.998172</td>\n","      <td>[@apple#ipad #irig For the price to connect my...</td>\n","      <td>[-0.03121807612478733, 0.0023986243177205324, ...</td>\n","      <td>@apple#ipad #irig For the price to connect my ...</td>\n","      <td>negative</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>2</th>\n","      <td>@Apple Stop liking man.</td>\n","      <td>240</td>\n","      <td>0.999984</td>\n","      <td>[@Apple Stop liking man.]</td>\n","      <td>[-0.042748626321554184, 0.02048809453845024, 0...</td>\n","      <td>@Apple Stop liking man.</td>\n","      <td>negative</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>3</th>\n","      <td>fucking @apple are memer FAGGOTS http://t.co/w...</td>\n","      <td>28</td>\n","      <td>0.999970</td>\n","      <td>[fucking @apple are memer FAGGOTS http://t.co/...</td>\n","      <td>[0.011834759265184402, -0.05850285664200783, 0...</td>\n","      <td>fucking @apple are memer FAGGOTS http://t.co/w...</td>\n","      <td>negative</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>4</th>\n","      <td>RT @gxldblvnts: thanking @apple for the 'do no...</td>\n","      <td>236</td>\n","      <td>0.999951</td>\n","      <td>[RT @gxldblvnts: thanking @apple for the 'do n...</td>\n","      <td>[-0.00759833725169301, -0.02228071726858616, 0...</td>\n","      <td>RT @gxldblvnts: thanking @apple for the 'do no...</td>\n","      <td>positive</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>...</th>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","    </tr>\n","    <tr>\n","      <th>223</th>\n","      <td>I love @AIRMILES! Between @chaptersindigo &amp;amp...</td>\n","      <td>51</td>\n","      <td>0.999980</td>\n","      <td>[I love @AIRMILES!, Between @chaptersindigo &amp;a...</td>\n","      <td>[-0.034336768090724945, -0.02440302073955536, ...</td>\n","      <td>I love @AIRMILES! Between @chaptersindigo &amp;amp...</td>\n","      <td>positive</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>224</th>\n","      <td>Take the stress out of looking for Christmas p...</td>\n","      <td>210</td>\n","      <td>0.999983</td>\n","      <td>[Take the stress out of looking for Christmas ...</td>\n","      <td>[-0.03665369004011154, -0.04174784570932388, -...</td>\n","      <td>Take the stress out of looking for Christmas p...</td>\n","      <td>positive</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>225</th>\n","      <td>It would be nice if I could type more than one...</td>\n","      <td>98</td>\n","      <td>0.995613</td>\n","      <td>[It would be nice if I could type more than on...</td>\n","      <td>[0.0202105101197958, -0.010581637732684612, -0...</td>\n","      <td>It would be nice if I could type more than one...</td>\n","      <td>negative</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>226</th>\n","      <td>Always so impressed with the customer service ...</td>\n","      <td>227</td>\n","      <td>1.000000</td>\n","      <td>[Always so impressed with the customer service...</td>\n","      <td>[-0.05745420977473259, 0.03164859488606453, -0...</td>\n","      <td>Always so impressed with the customer service ...</td>\n","      <td>positive</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>227</th>\n","      <td>Goodbye graphics problems. Thank you @apple fo...</td>\n","      <td>104</td>\n","      <td>0.999992</td>\n","      <td>[Goodbye graphics problems., Thank you @apple ...</td>\n","      <td>[-0.019405337050557137, -0.0494435578584671, -...</td>\n","      <td>Goodbye graphics problems. Thank you @apple fo...</td>\n","      <td>positive</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","<p>228 rows × 8 columns</p>\n","</div>"],"text/plain":["                                                  text  ...  trained_sentiment\n","0    @Apple @iCloud Family in-app purchase approval...  ...           negative\n","1    @apple#ipad #irig  For the price to connect my...  ...           negative\n","2                              @Apple Stop liking man.  ...           negative\n","3    fucking @apple are memer FAGGOTS http://t.co/w...  ...           negative\n","4    RT @gxldblvnts: thanking @apple for the 'do no...  ...           positive\n","..                                                 ...  ...                ...\n","223  I love @AIRMILES! Between @chaptersindigo &amp...  ...           positive\n","224  Take the stress out of looking for Christmas p...  ...           positive\n","225  It would be nice if I could type more than one...  ...           negative\n","226  Always so impressed with the customer service ...  ...           positive\n","227  Goodbye graphics problems. Thank you @apple fo...  ...           positive\n","\n","[228 rows x 8 columns]"]},"metadata":{"tags":[]},"execution_count":4}]},{"cell_type":"markdown","metadata":{"id":"_1jxw3GnVGlI"},"source":["# 3.1 evaluate on Test Data"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"Fxx4yNkNVGFl","executionInfo":{"status":"ok","timestamp":1620196291463,"user_tz":-300,"elapsed":588621,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"c93b24ba-3851-429b-d8a9-5dbdf5002c99"},"source":["preds = fitted_pipe.predict(test_df,output_level='document')\n","\n","#sentence detector that is part of the pipe generates sone NaNs. lets drop them first\n","preds.dropna(inplace=True)\n","print(classification_report(preds['y'], preds['sentiment']))\n"],"execution_count":null,"outputs":[{"output_type":"stream","text":["              precision    recall  f1-score   support\n","\n","    negative       0.94      0.83      0.88        35\n","    positive       0.78      0.91      0.84        23\n","\n","    accuracy                           0.86        58\n","   macro avg       0.86      0.87      0.86        58\n","weighted avg       0.87      0.86      0.86        58\n","\n"],"name":"stdout"}]},{"cell_type":"markdown","metadata":{"id":"BD5OKO4Umc5U"},"source":["#4.  Test Model  on 20  languages!"]},{"cell_type":"code","metadata":{"id":"OQ72hP9unML7","colab":{"base_uri":"https://localhost:8080/","height":742},"executionInfo":{"status":"ok","timestamp":1620196315254,"user_tz":-300,"elapsed":612397,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"45606261-50e8-4e3d-8089-795317569504"},"source":["import pandas as pd\n","\n","train_df = pd.read_csv('/content/apple-twitter-sentiment-texts_multi_lingual.csv')\n","columns=['test_sentences','y']\n","train_df = train_df[columns]\n","train_df = train_df[~train_df[\"y\"].isin([\"neuteral\"])]\n","train_df\n","preds = fitted_pipe.predict(train_df[[\"test_sentences\",\"y\"]].iloc[:100],output_level='document')\n","\n","#sentence detector that is part of the pipe generates sone NaNs. lets drop them first\n","preds.dropna(inplace=True)\n","print(classification_report(preds['y'], preds['sentiment']))\n","\n","preds"],"execution_count":null,"outputs":[{"output_type":"stream","text":["              precision    recall  f1-score   support\n","\n","    negative       0.93      0.89      0.91        47\n","    positive       0.91      0.94      0.93        53\n","\n","    accuracy                           0.92       100\n","   macro avg       0.92      0.92      0.92       100\n","weighted avg       0.92      0.92      0.92       100\n","\n"],"name":"stdout"},{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>text</th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>y</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>@Apple, du skal sortere dine telefoner.</td>\n","      <td>0</td>\n","      <td>0.808998</td>\n","      <td>[@Apple, du skal sortere dine telefoner.]</td>\n","      <td>[-0.061579205095767975, -0.006414646748453379,...</td>\n","      <td>@Apple, du skal sortere dine telefoner.</td>\n","      <td>negative</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>1</th>\n","      <td>వావ్. యాల్ నీడా స్టెప్ అప్ @ యాపిల్ ఆర్టి y హే...</td>\n","      <td>1</td>\n","      <td>0.949447</td>\n","      <td>[వావ్. యాల్ నీడా స్టెప్ అప్ @ యాపిల్ ఆర్టి y హ...</td>\n","      <td>[-0.06188163533806801, -0.07130676507949829, -...</td>\n","      <td>వావ్. యాల్ నీడా స్టెప్ అప్ @ యాపిల్ ఆర్టి y హే...</td>\n","      <td>negative</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>2</th>\n","      <td>আমি আশ্চর্য হয়েছি যে গতকাল # এএপএল-তে ফ্ল্যাশ...</td>\n","      <td>2</td>\n","      <td>0.817636</td>\n","      <td>[আমি আশ্চর্য হয়েছি যে গতকাল # এএপএল-তে ফ্ল্যা...</td>\n","      <td>[-0.009524044580757618, -0.022813592106103897,...</td>\n","      <td>আমি আশ্চর্য হয়েছি যে গতকাল # এএপএল-তে ফ্ল্যাশ...</td>\n","      <td>negative</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>3</th>\n","      <td>Uvědomili jsme si, že @apple vyrábí obrovské t...</td>\n","      <td>3</td>\n","      <td>0.987724</td>\n","      <td>[Uvědomili jsme si, že @apple vyrábí obrovské ...</td>\n","      <td>[-0.05080719664692879, 0.035508085042238235, 0...</td>\n","      <td>Uvědomili jsme si, že @apple vyrábí obrovské t...</td>\n","      <td>negative</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>4</th>\n","      <td>Apple Inc.'s administrerende direktør donerer ...</td>\n","      <td>4</td>\n","      <td>1.000000</td>\n","      <td>[Apple Inc.'s administrerende direktør donerer...</td>\n","      <td>[-0.04884444922208786, -0.02654154971241951, 0...</td>\n","      <td>Apple Inc.'s administrerende direktør donerer ...</td>\n","      <td>positive</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>...</th>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","      <td>...</td>\n","    </tr>\n","    <tr>\n","      <th>95</th>\n","      <td>Təşəkkür edirəm @Apple İndi bir yerdə ünsiyyət...</td>\n","      <td>95</td>\n","      <td>0.999454</td>\n","      <td>[Təşəkkür edirəm @Apple İndi bir yerdə ünsiyyə...</td>\n","      <td>[-0.03029252029955387, -0.0471813827753067, -0...</td>\n","      <td>Təşəkkür edirəm @Apple İndi bir yerdə ünsiyyət...</td>\n","      <td>positive</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>96</th>\n","      <td>. @ tim_cook Die woede wanneer hulle @ Apple G...</td>\n","      <td>96</td>\n","      <td>0.990521</td>\n","      <td>[. @ tim_cook Die woede wanneer hulle @ Apple ...</td>\n","      <td>[0.01344149000942707, -0.05397084355354309, -0...</td>\n","      <td>. @ tim_cook Die woede wanneer hulle @ Apple G...</td>\n","      <td>negative</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>97</th>\n","      <td>ছদ্মবেশের ধরণটি হ'ল এই @ অ্যাপল @ অটোকোরেক্ট @...</td>\n","      <td>97</td>\n","      <td>0.993052</td>\n","      <td>[ছদ্মবেশের ধরণটি হ'ল এই @ অ্যাপল @ অটোকোরেক্ট ...</td>\n","      <td>[-0.028785958886146545, -0.06805533170700073, ...</td>\n","      <td>ছদ্মবেশের ধরণটি হ'ল এই @ অ্যাপল @ অটোকোরেক্ট @...</td>\n","      <td>negative</td>\n","      <td>negative</td>\n","    </tr>\n","    <tr>\n","      <th>98</th>\n","      <td>Было бы неплохо, если бы я мог набрать более о...</td>\n","      <td>98</td>\n","      <td>0.815481</td>\n","      <td>[Было бы неплохо, если бы я мог набрать более ...</td>\n","      <td>[0.0006764091667719185, -0.0028165546245872974...</td>\n","      <td>Было бы неплохо, если бы я мог набрать более о...</td>\n","      <td>negative</td>\n","      <td>positive</td>\n","    </tr>\n","    <tr>\n","      <th>99</th>\n","      <td>@OneRepublic @Apple Вы все готовы. #ColoradoLo...</td>\n","      <td>99</td>\n","      <td>0.999987</td>\n","      <td>[@OneRepublic @Apple Вы все готовы.,  #Colorad...</td>\n","      <td>[-0.006210405845195055, -0.05371640995144844, ...</td>\n","      <td>@OneRepublic @Apple Вы все готовы. #ColoradoLo...</td>\n","      <td>positive</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","<p>100 rows × 8 columns</p>\n","</div>"],"text/plain":["                                                 text  ...  trained_sentiment\n","0            @Apple, du skal sortere dine telefoner.   ...           positive\n","1   వావ్. యాల్ నీడా స్టెప్ అప్ @ యాపిల్ ఆర్టి y హే...  ...           negative\n","2   আমি আশ্চর্য হয়েছি যে গতকাল # এএপএল-তে ফ্ল্যাশ...  ...           negative\n","3   Uvědomili jsme si, že @apple vyrábí obrovské t...  ...           positive\n","4   Apple Inc.'s administrerende direktør donerer ...  ...           positive\n","..                                                ...  ...                ...\n","95  Təşəkkür edirəm @Apple İndi bir yerdə ünsiyyət...  ...           positive\n","96  . @ tim_cook Die woede wanneer hulle @ Apple G...  ...           negative\n","97  ছদ্মবেশের ধরণটি হ'ল এই @ অ্যাপল @ অটোকোরেক্ট @...  ...           negative\n","98  Было бы неплохо, если бы я мог набрать более о...  ...           positive\n","99  @OneRepublic @Apple Вы все готовы. #ColoradoLo...  ...           positive\n","\n","[100 rows x 8 columns]"]},"metadata":{"tags":[]},"execution_count":6}]},{"cell_type":"markdown","metadata":{"id":"RjtuNUcvuJTT"},"source":["# The Model understands Englsih\n","![en](https://www.worldometers.info/img/flags/small/tn_nz-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"o0vu7PaWkcI7","executionInfo":{"status":"ok","timestamp":1620196316695,"user_tz":-300,"elapsed":613799,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"75a3fe2b-51e3-4626-deb0-1181785f03b7"},"source":["\n","fitted_pipe.predict(\"I hate the newest update!! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999776</td>\n","      <td>[I hate the newest update!, !]</td>\n","      <td>[-0.03925566002726555, -0.020373696461319923, ...</td>\n","      <td>I hate the newest update!!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":7}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"1ykjRQhCtQ4w","executionInfo":{"status":"ok","timestamp":1620196317752,"user_tz":-300,"elapsed":614830,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"0e7918ec-70fb-4b18-88d4-8f819a8f9086"},"source":["fitted_pipe.predict(\"I love the newest update!! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999902</td>\n","      <td>[I love the newest update!, !]</td>\n","      <td>[-0.03266981244087219, -0.03438195958733559, -...</td>\n","      <td>I love the newest update!!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":8}]},{"cell_type":"markdown","metadata":{"id":"vohym-XbuNHn"},"source":["# The Model understands German\n","![de](https://www.worldometers.info/img/flags/small/tn_gm-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"BbhgTSBGtTtJ","executionInfo":{"status":"ok","timestamp":1620196319098,"user_tz":-300,"elapsed":616150,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"b1658345-95fc-43a7-ebdf-c2543e90fdd5"},"source":["# german for: 'I love the newest update!!'\n","fitted_pipe.predict(\"Ich liebe das neueste Update !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999718</td>\n","      <td>[Ich liebe das neueste Update !, !]</td>\n","      <td>[-0.03806369751691818, -0.03677768632769585, -...</td>\n","      <td>Ich liebe das neueste Update !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":9}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"ZaPYBxeL33pH","executionInfo":{"status":"ok","timestamp":1620196320112,"user_tz":-300,"elapsed":617139,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"deaf3626-a525-40d5-b169-86060a3aa708"},"source":["# german for: 'Apple is the worst company ever  , I hate it !'\n","fitted_pipe.predict(\"Apple ist das schlechteste Unternehmen aller Zeiten, ich hasse es! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999974</td>\n","      <td>[Apple ist das schlechteste Unternehmen aller ...</td>\n","      <td>[-0.06440500915050507, 0.011019382625818253, -...</td>\n","      <td>Apple ist das schlechteste Unternehmen aller Z...</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":10}]},{"cell_type":"markdown","metadata":{"id":"a1JbtmWquQwj"},"source":["# The Model understands Chinese\n","![zh](https://www.worldometers.info/img/flags/small/tn_ch-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"kYSYqtoRtc-P","executionInfo":{"status":"ok","timestamp":1620196321594,"user_tz":-300,"elapsed":618596,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"046d9bb1-7c6b-491a-ea2b-42809da77ae0"},"source":["# Chinese for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"我讨厌最新的更新！ \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999468</td>\n","      <td>[我讨厌最新的更新！]</td>\n","      <td>[-0.0359969362616539, -0.03859588876366615, 0....</td>\n","      <td>我讨厌最新的更新！</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  trained_sentiment_confidence  ...   document trained_sentiment\n","0             0                      0.999468  ...  我讨厌最新的更新！          negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":11}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"06v9SD-QtlBU","executionInfo":{"status":"ok","timestamp":1620196322995,"user_tz":-300,"elapsed":619951,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"ca191395-4bd8-49dc-d1e5-0b9bbcf7a6e8"},"source":["# Chinese for: 'I love the newest update!!'\n","fitted_pipe.predict(\"我喜欢最新的更新！ \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999998</td>\n","      <td>[我喜欢最新的更新！]</td>\n","      <td>[-0.03270617872476578, -0.03804901987314224, -...</td>\n","      <td>我喜欢最新的更新！</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  trained_sentiment_confidence  ...   document trained_sentiment\n","0             0                      0.999998  ...  我喜欢最新的更新！          positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":12}]},{"cell_type":"markdown","metadata":{"id":"9h7CvN4uu9Pb"},"source":["# Model understands Afrikaans\n","\n","![af](https://www.worldometers.info/img/flags/small/tn_sf-flag.gif)\n","\n"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"VMPhbgw9twtf","executionInfo":{"status":"ok","timestamp":1620196324051,"user_tz":-300,"elapsed":620975,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"219493f4-5ff4-4a1f-c552-c68fbf315276"},"source":["\t\t\n","#  Afrikaans for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"Ek haat die nuutste opdatering !! \")\n"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999861</td>\n","      <td>[Ek haat die nuutste opdatering !!]</td>\n","      <td>[-0.043201908469200134, -0.023186631500720978,...</td>\n","      <td>Ek haat die nuutste opdatering !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":13}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"zWgNTIdkumhX","executionInfo":{"status":"ok","timestamp":1620196325181,"user_tz":-300,"elapsed":622070,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"603bb80e-dd6f-4e2c-b961-a9ae77b2a769"},"source":["#  Afrikaans for: 'I love the newest update!!'\n","fitted_pipe.predict(\"Ek is lief vir die nuutste opdatering !! \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999924</td>\n","      <td>[Ek is lief vir die nuutste opdatering !!]</td>\n","      <td>[-0.03175487741827965, -0.03518300876021385, -...</td>\n","      <td>Ek is lief vir die nuutste opdatering !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":14}]},{"cell_type":"markdown","metadata":{"id":"rSEPkC-Bwnpg"},"source":["# The model understands Vietnamese\n","![vi](https://www.worldometers.info/img/flags/small/tn_vm-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"M6giDPK-wm2G","executionInfo":{"status":"ok","timestamp":1620196326148,"user_tz":-300,"elapsed":622989,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"e453305f-6c5e-4d13-d100-27bd4d5ca198"},"source":["\n","# Vietnamese for: 'I love the newest update!!'\n","fitted_pipe.predict(\"Tôi yêu bản cập nhật mới nhất !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999969</td>\n","      <td>[Tôi yêu bản cập nhật mới nhất !, !]</td>\n","      <td>[-0.00781381968408823, -0.0691518485546112, -0...</td>\n","      <td>Tôi yêu bản cập nhật mới nhất !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":15}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"benoJUN_4i3Q","executionInfo":{"status":"ok","timestamp":1620196326926,"user_tz":-300,"elapsed":623623,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"4ee9d849-b894-497c-89df-5807cb84d64f"},"source":["\n","# Vietnamese for: 'Apple is the worst company ever  , I hate it !'\n","fitted_pipe.predict(\"Apple là công ty tồi tệ nhất từ ​​trước đến nay, tôi ghét nó!\")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.99895</td>\n","      <td>[Apple là công ty tồi tệ nhất từ ​​trước đến n...</td>\n","      <td>[-0.06147113814949989, 0.03707527741789818, 0....</td>\n","      <td>Apple là công ty tồi tệ nhất từ ​​trước đến na...</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":16}]},{"cell_type":"markdown","metadata":{"id":"IlkmAaMoxTuy"},"source":["# The model understands Japanese\n","![ja](https://www.worldometers.info/img/flags/small/tn_ja-flag.gif)\n"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"1IfJu3q8wwUt","executionInfo":{"status":"ok","timestamp":1620196328303,"user_tz":-300,"elapsed":624943,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"d5e3a13a-66ca-4132-e134-8a1e2a1d5150"},"source":["# Japanese for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"私は最新のアップデートが嫌いです！ \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999842</td>\n","      <td>[私は最新のアップデートが嫌いです！]</td>\n","      <td>[-0.030076516792178154, -0.002390763023868203,...</td>\n","      <td>私は最新のアップデートが嫌いです！</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":17}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"h3k7_PFhxOve","executionInfo":{"status":"ok","timestamp":1620196329400,"user_tz":-300,"elapsed":626002,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"3e5656fe-a282-42fb-b2e2-42eeb280453e"},"source":["\t\t\n","# Japanese for: 'I love the newest update!!'\n","fitted_pipe.predict(\"私は最新のアップデートが大好きです！ \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999998</td>\n","      <td>[私は最新のアップデートが大好きです！]</td>\n","      <td>[-0.01563793420791626, -0.022478925064206123, ...</td>\n","      <td>私は最新のアップデートが大好きです！</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":18}]},{"cell_type":"markdown","metadata":{"id":"GITfT7FK0CGv"},"source":["# The model understands Zulu\n","![zu](https://www.worldometers.info/img/flags/small/tn_sf-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"DKnrkkXzzpd5","executionInfo":{"status":"ok","timestamp":1620196330165,"user_tz":-300,"elapsed":626739,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"c971b040-8789-4694-e026-4d4a8970f7ce"},"source":["#  Zulu for: 'I love the newest update!!'\n","fitted_pipe.predict(\"Ngiyasithanda isibuyekezo esisha !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999417</td>\n","      <td>[Ngiyasithanda isibuyekezo esisha !, !]</td>\n","      <td>[-0.018757890909910202, -0.03155702352523804, ...</td>\n","      <td>Ngiyasithanda isibuyekezo esisha !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":19}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"HInPIW9A4rg2","executionInfo":{"status":"ok","timestamp":1620196331872,"user_tz":-300,"elapsed":628382,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"423bc521-5ca5-4d19-ab40-318022deae11"},"source":["#  Zulu for: Apple is the worst company ever  , I hate it !'\n","fitted_pipe.predict(\"I-Apple iyinkampani embi kunazo zonke ezake, ngiyayizonda!\")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999329</td>\n","      <td>[I-Apple iyinkampani embi kunazo zonke ezake, ...</td>\n","      <td>[-0.06040400266647339, 0.025964893400669098, 0...</td>\n","      <td>I-Apple iyinkampani embi kunazo zonke ezake, n...</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":20}]},{"cell_type":"markdown","metadata":{"id":"VGVvzl_30a0T"},"source":["# The  Model understands Turkish\n","![tr](https://www.worldometers.info/img/flags/small/tn_tu-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"DRNnuEeQz2pd","executionInfo":{"status":"ok","timestamp":1620196332464,"user_tz":-300,"elapsed":628932,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"705430ec-7760-41b4-f58c-4893e717192c"},"source":["#  Turkish for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"En yeni güncellemekten nefret ediyorum !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.99968</td>\n","      <td>[En yeni güncellemekten nefret ediyorum !, !]</td>\n","      <td>[-0.006802674848586321, -0.03453182056546211, ...</td>\n","      <td>En yeni güncellemekten nefret ediyorum !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":21}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"aOSsiK6J0jWs","executionInfo":{"status":"ok","timestamp":1620196333251,"user_tz":-300,"elapsed":629686,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"b1d51bd6-0fbc-40ef-e9b1-0870ff795109"},"source":["#  Turkish for: 'I love the newest update!!'\n","fitted_pipe.predict(\"En yeni güncellemeyi seviyorum !! \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999978</td>\n","      <td>[En yeni güncellemeyi seviyorum !, !]</td>\n","      <td>[-0.013165195472538471, -0.04192955046892166, ...</td>\n","      <td>En yeni güncellemeyi seviyorum !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":22}]},{"cell_type":"markdown","metadata":{"id":"803qL2gt0vlb"},"source":["#  The Model understands Hebrew\n","![he](https://www.worldometers.info/img/flags/small/tn_sf-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"XQ5VCtxw0pc0","executionInfo":{"status":"ok","timestamp":1620196334671,"user_tz":-300,"elapsed":631080,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"141055ef-3e9c-47f5-ce8d-672e16a4e6b0"},"source":["# Hebrew for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"אני שונא את העדכון החדש ביותר! \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999878</td>\n","      <td>[אני שונא את העדכון החדש ביותר!]</td>\n","      <td>[-0.026791388168931007, -0.024923792108893394,...</td>\n","      <td>אני שונא את העדכון החדש ביותר!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":23}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"9w2ZHfns05A4","executionInfo":{"status":"ok","timestamp":1620196335414,"user_tz":-300,"elapsed":631792,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"2c272b41-b214-4e0b-93ab-480c97e5782a"},"source":["# Hebrew for: 'I love the newest update!!'\n","fitted_pipe.predict(\"אני אוהב את העדכון החדש ביותר !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999993</td>\n","      <td>[אני אוהב את העדכון החדש ביותר !!]</td>\n","      <td>[-0.025626346468925476, -0.03748653084039688, ...</td>\n","      <td>אני אוהב את העדכון החדש ביותר !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":24}]},{"cell_type":"markdown","metadata":{"id":"SDlpd33H1HIX"},"source":["# The Model understands Telugu\n","![te](https://www.worldometers.info/img/flags/small/tn_in-flag.gif)\n"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"-l-u6vrz1Obe","executionInfo":{"status":"ok","timestamp":1620196336805,"user_tz":-300,"elapsed":633162,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"4589a96d-d564-4d10-b405-4835f29bacb8"},"source":["# Telugu for: 'I love the newest update!!'\n","fitted_pipe.predict(\"నేను సరికొత్త నవీకరణను ప్రేమిస్తున్నాను !! \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999994</td>\n","      <td>[నేను సరికొత్త నవీకరణను ప్రేమిస్తున్నాను !!]</td>\n","      <td>[-0.035736482590436935, -0.04187411442399025, ...</td>\n","      <td>నేను సరికొత్త నవీకరణను ప్రేమిస్తున్నాను !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":25}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"uuR3Reqc5JbT","executionInfo":{"status":"ok","timestamp":1620196337878,"user_tz":-300,"elapsed":634167,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"20abd3ca-41d4-41ee-eb24-81830508234d"},"source":["# Telugu for: 'Apple is the worst company ever  , I hate it !'\n","fitted_pipe.predict(\" ఆపిల్ ఎప్పుడూ చెత్త సంస్థ, నేను దానిని ద్వేషిస్తున్నాను!  \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999924</td>\n","      <td>[ఆపిల్ ఎప్పుడూ చెత్త సంస్థ, నేను దానిని ద్వేషి...</td>\n","      <td>[-0.06062706932425499, 0.014408073388040066, -...</td>\n","      <td>ఆపిల్ ఎప్పుడూ చెత్త సంస్థ, నేను దానిని ద్వేషిస...</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":26}]},{"cell_type":"markdown","metadata":{"id":"nziBUe8t1Zwn"},"source":["# Model understands Russian\n","![ru](https://www.worldometers.info/img/flags/small/tn_rs-flag.gif)\n"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"Ckyjl3YQ1VFn","executionInfo":{"status":"ok","timestamp":1620196338258,"user_tz":-300,"elapsed":634526,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"b481f186-de5c-4137-bf6c-a79c472ce75b"},"source":["#  Russian for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"Я ненавижу новейшее обновление !! \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999845</td>\n","      <td>[Я ненавижу новейшее обновление !!]</td>\n","      <td>[-0.05251258984208107, -0.02137317694723606, -...</td>\n","      <td>Я ненавижу новейшее обновление !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":27}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"GIdWkfGv1gFz","executionInfo":{"status":"ok","timestamp":1620196339448,"user_tz":-300,"elapsed":635693,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"99c3f083-3768-45eb-d610-76b174068470"},"source":["\n","\n","#  Russian for: 'I love the newest update!!'\n","fitted_pipe.predict(\"Я люблю новейшее обновление !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999972</td>\n","      <td>[Я люблю новейшее обновление !!]</td>\n","      <td>[-0.04557504504919052, -0.0393301285803318, -0...</td>\n","      <td>Я люблю новейшее обновление !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":28}]},{"cell_type":"markdown","metadata":{"id":"8R1j9mwz2Cm4"},"source":["# Model understands Urdu\n","![ur](https://www.worldometers.info/img/flags/small/tn_pk-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"j4zwvRV11pcG","executionInfo":{"status":"ok","timestamp":1620196340361,"user_tz":-300,"elapsed":636446,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"305928c8-765f-4db1-b295-831753b31590"},"source":["# Urdu for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"مجھے تازہ ترین اپ ڈیٹ سے نفرت ہے !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999563</td>\n","      <td>[مجھے تازہ ترین اپ ڈیٹ سے نفرت ہے !, !]</td>\n","      <td>[-0.042040981352329254, -0.040164750069379807,...</td>\n","      <td>مجھے تازہ ترین اپ ڈیٹ سے نفرت ہے !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":29}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"SxzTuK4b2UKV","executionInfo":{"status":"ok","timestamp":1620196341167,"user_tz":-300,"elapsed":637211,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"c0a94c88-1c03-4b72-bf52-b5873e7bd1c0"},"source":["# Urdu for: 'I love the newest update!!'\n","fitted_pipe.predict(\"مجھے تازہ ترین تازہ کاری پسند ہے !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999973</td>\n","      <td>[مجھے تازہ ترین تازہ کاری پسند ہے !, !]</td>\n","      <td>[-0.020344950258731842, -0.050028372555971146,...</td>\n","      <td>مجھے تازہ ترین تازہ کاری پسند ہے !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":30}]},{"cell_type":"markdown","metadata":{"id":"RoNg-C3k1qcX"},"source":["# Model understands Hindi\n","![hi](https://www.worldometers.info/img/flags/small/tn_in-flag.gif)\n"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"QZ9RT5Wv1r1n","executionInfo":{"status":"ok","timestamp":1620196342298,"user_tz":-300,"elapsed":638319,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"4e340e86-80a2-4a64-907f-e441ea3f47b8"},"source":["# hindi for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"मुझे नवीनतम अपडेट से नफरत है !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999722</td>\n","      <td>[मुझे नवीनतम अपडेट से नफरत है !, !]</td>\n","      <td>[-0.045306481420993805, -0.038678351789712906,...</td>\n","      <td>मुझे नवीनतम अपडेट से नफरत है !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":31}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"quM-IL2i12-B","executionInfo":{"status":"ok","timestamp":1620196343281,"user_tz":-300,"elapsed":639281,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"f7a9482d-f5d9-466c-c097-362381e28e81"},"source":["# hindi for: 'I love the newest update!!'\n","fitted_pipe.predict(\"मैं नवीनतम अद्यतन प्यार करता हूँ !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999919</td>\n","      <td>[मैं नवीनतम अद्यतन प्यार करता हूँ !!]</td>\n","      <td>[-0.03802281618118286, -0.04779476672410965, -...</td>\n","      <td>मैं नवीनतम अद्यतन प्यार करता हूँ !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":32}]},{"cell_type":"markdown","metadata":{"id":"R4ByHOZn35Lc"},"source":["# The model understands Tartar\n","![tt](https://www.worldometers.info/img/flags/small/tn_rs-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"2JrzusSQ18F5","executionInfo":{"status":"ok","timestamp":1620196344487,"user_tz":-300,"elapsed":640464,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"bb6f1437-583f-4a0d-86a6-b88a9566744d"},"source":["# Tartar for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"Мин яңа яңартуны нәфрәт итәм !! \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999187</td>\n","      <td>[Мин яңа яңартуны нәфрәт итәм !!]</td>\n","      <td>[-0.038122836500406265, -0.03321803733706474, ...</td>\n","      <td>Мин яңа яңартуны нәфрәт итәм !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":33}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"J06Xm_Ln4AYu","executionInfo":{"status":"ok","timestamp":1620196345259,"user_tz":-300,"elapsed":641162,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"955de65f-eccb-4833-e062-2986d9b447ab"},"source":["\n","# Tartar for: 'I love the newest update!!'\n","fitted_pipe.predict(\"Мин иң яңа яңартуны яратам !! \")\n","\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999963</td>\n","      <td>[Мин иң яңа яңартуны яратам !!]</td>\n","      <td>[-0.022450288757681847, -0.04027746245265007, ...</td>\n","      <td>Мин иң яңа яңартуны яратам !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":34}]},{"cell_type":"markdown","metadata":{"id":"HKj5yWwwMplH"},"source":["# The Model understands French\n","![fr](https://www.worldometers.info/img/flags/small/tn_fr-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"CUHcJZfJMplL","executionInfo":{"status":"ok","timestamp":1620196346393,"user_tz":-300,"elapsed":642236,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"12505238-b8eb-4473-c0f8-45667e45e929"},"source":["# French for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"Je déteste la nouvelle mise à jour !! \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999315</td>\n","      <td>[Je déteste la nouvelle mise à jour !!]</td>\n","      <td>[-0.0480484776198864, -0.01981555111706257, -0...</td>\n","      <td>Je déteste la nouvelle mise à jour !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":35}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"57NY2XoTMplM","executionInfo":{"status":"ok","timestamp":1620196346761,"user_tz":-300,"elapsed":642536,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"3f99ecf2-d112-40db-cb45-7adf7214d524"},"source":["# French for: 'I love the newest update!!'\n","fitted_pipe.predict(\"J'adore la dernière mise à jour !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999959</td>\n","      <td>[J'adore la dernière mise à jour !!]</td>\n","      <td>[-0.03898211941123009, -0.04296712949872017, -...</td>\n","      <td>J'adore la dernière mise à jour !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":36}]},{"cell_type":"markdown","metadata":{"id":"jD2TBgT0Nq6F"},"source":["# The Model understands Thai\n","![th](https://www.worldometers.info/img/flags/small/tn_th-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"ICp_qoAhNq6Q","executionInfo":{"status":"ok","timestamp":1620196347725,"user_tz":-300,"elapsed":643302,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"fcffa441-5269-4b97-9b89-0c836fa4773d"},"source":["# Thai for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"ฉันเกลียดการอัปเดตใหม่ล่าสุด !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999806</td>\n","      <td>[ฉันเกลียดการอัปเดตใหม่ล่าสุด !!]</td>\n","      <td>[-0.05030808597803116, -0.03610166534781456, -...</td>\n","      <td>ฉันเกลียดการอัปเดตใหม่ล่าสุด !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":37}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"gBp11S5GNq6S","executionInfo":{"status":"ok","timestamp":1620196348779,"user_tz":-300,"elapsed":644049,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"c69d1e70-229c-460e-d4b5-38749d7e8a1d"},"source":["# Thai for: 'I love the newest update!!'\n","fitted_pipe.predict(\"โดนใจอัพเดทใหม่ล่าสุด !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999978</td>\n","      <td>[โดนใจอัพเดทใหม่ล่าสุด !!]</td>\n","      <td>[-0.046895772218704224, -0.04769491031765938, ...</td>\n","      <td>โดนใจอัพเดทใหม่ล่าสุด !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":38}]},{"cell_type":"markdown","metadata":{"id":"mLItI4KZOElB"},"source":["# The Model understands Khmer\n","![km](https://www.worldometers.info/img/flags/small/tn_cb-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"Fxh1gasROElC","executionInfo":{"status":"ok","timestamp":1620196349749,"user_tz":-300,"elapsed":645001,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"dce681df-3d99-4ac2-a64b-d69ac2b66d77"},"source":["# Khmer for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"ខ្ញុំស្អប់ការអាប់ដេតថ្មីបំផុត !! \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.99968</td>\n","      <td>[ខ្ញុំស្អប់ការអាប់ដេតថ្មីបំផុត !!]</td>\n","      <td>[-0.04094554856419563, -0.04082174971699715, -...</td>\n","      <td>ខ្ញុំស្អប់ការអាប់ដេតថ្មីបំផុត !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":39}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"SWbqMgAwOElC","executionInfo":{"status":"ok","timestamp":1620196350989,"user_tz":-300,"elapsed":646147,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"b353b4a4-c82c-42fb-b0f8-59bd675c4f45"},"source":["# Khmer for: 'I love the newest update!!'\n","fitted_pipe.predict(\"ខ្ញុំចូលចិត្តការអាប់ដេតថ្មីបំផុត !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.99999</td>\n","      <td>[ខ្ញុំចូលចិត្តការអាប់ដេតថ្មីបំផុត !!]</td>\n","      <td>[-0.03578546270728111, -0.035129521042108536, ...</td>\n","      <td>ខ្ញុំចូលចិត្តការអាប់ដេតថ្មីបំផុត !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":40}]},{"cell_type":"markdown","metadata":{"id":"lvE-LbNiPoBT"},"source":["# The Model understands Yiddish\n","![yi](https://www.worldometers.info/img/flags/small/tn_pl-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"5h-pha_nPoBc","executionInfo":{"status":"ok","timestamp":1620196351778,"user_tz":-300,"elapsed":646791,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"e00f667c-f8e0-42f6-a505-f1eb3a8e51e4"},"source":["\n","# Yiddish for: 'I love the newest update!!'\n","fitted_pipe.predict(\"איך ליבע דער נואַסט דערהייַנטיקן !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999994</td>\n","      <td>[איך ליבע דער נואַסט דערהייַנטיקן !!]</td>\n","      <td>[-0.03009073995053768, -0.060998495668172836, ...</td>\n","      <td>איך ליבע דער נואַסט דערהייַנטיקן !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":41}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"YcM5k6Ce5Vpo","executionInfo":{"status":"ok","timestamp":1620196352473,"user_tz":-300,"elapsed":647349,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"2dcb88d7-3359-4c93-d335-dc53ba5cadf7"},"source":["\n","# Yiddish for: 'Apple is the worst company ever  , I hate it !'\n","fitted_pipe.predict(\"עפּל איז די ערגסט פירמע טאָמיד, איך האַס עס!\")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.717363</td>\n","      <td>[עפּל איז די ערגסט פירמע טאָמיד, איך האַס עס!]</td>\n","      <td>[-0.0464082695543766, 0.007680143229663372, 0....</td>\n","      <td>עפּל איז די ערגסט פירמע טאָמיד, איך האַס עס!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":42}]},{"cell_type":"markdown","metadata":{"id":"XSz4WzScaAHj"},"source":["# The Model understands Kygrgyz\n","![ky](https://www.worldometers.info/img/flags/small/tn_kg-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"DXz6fhJSaAHu","executionInfo":{"status":"ok","timestamp":1620196353410,"user_tz":-300,"elapsed":648267,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"5505a0eb-a456-4642-aff0-e8dd2e522ecf"},"source":["\t\t\n","# Kygrgyz for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"Мен жаңы жаңыртууну жек көрөм !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999657</td>\n","      <td>[Мен жаңы жаңыртууну жек көрөм !!]</td>\n","      <td>[-0.04081014543771744, -0.037187058478593826, ...</td>\n","      <td>Мен жаңы жаңыртууну жек көрөм !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":43}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"lh_ZSHlPaAHv","executionInfo":{"status":"ok","timestamp":1620196354442,"user_tz":-300,"elapsed":649139,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"35d7b00b-b6a1-4209-e2e0-ccde33d0d602"},"source":["\t\t\n","# Kygrgyz for: 'I love the newest update!!'\n","fitted_pipe.predict(\"Мен жаңы жаңыртууну жакшы көрөм !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999925</td>\n","      <td>[Мен жаңы жаңыртууну жакшы көрөм !!]</td>\n","      <td>[-0.02940315194427967, -0.0417410284280777, -0...</td>\n","      <td>Мен жаңы жаңыртууну жакшы көрөм !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":44}]},{"cell_type":"markdown","metadata":{"id":"DGMVMKaTdJFj"},"source":["# The Model understands Tamil\n","![ta](https://www.worldometers.info/img/flags/small/tn_in-flag.gif)"]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"JWDr_LoCdJFn","executionInfo":{"status":"ok","timestamp":1620196355541,"user_tz":-300,"elapsed":650204,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"22b8e435-44b5-463f-8aa5-005568b91f2d"},"source":["\t\t\n","# Tamil for: 'I hate the newest update!!'\n","fitted_pipe.predict(\"நான் புதிய புதுப்பிப்பை வெறுக்கிறேன் !! \")\n","\t\t"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999217</td>\n","      <td>[நான் புதிய புதுப்பிப்பை வெறுக்கிறேன் !!]</td>\n","      <td>[-0.04580855742096901, -0.03527894616127014, -...</td>\n","      <td>நான் புதிய புதுப்பிப்பை வெறுக்கிறேன் !!</td>\n","      <td>negative</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           negative\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":45}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/","height":80},"id":"Q6C0BmTtdJFp","executionInfo":{"status":"ok","timestamp":1620196356107,"user_tz":-300,"elapsed":650632,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"4700d21e-08a1-4f4b-936e-3d03f5b5548f"},"source":["\n","# Tamil for: 'I love the newest update!!'\n","fitted_pipe.predict(\"நான் புதிய புதுப்பிப்பை விரும்புகிறேன் !! \")"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>origin_index</th>\n","      <th>trained_sentiment_confidence</th>\n","      <th>sentence</th>\n","      <th>sentence_embedding_labse</th>\n","      <th>document</th>\n","      <th>trained_sentiment</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>0</td>\n","      <td>0.999528</td>\n","      <td>[நான் புதிய புதுப்பிப்பை விரும்புகிறேன் !!]</td>\n","      <td>[-0.0359167717397213, -0.05217977613210678, -0...</td>\n","      <td>நான் புதிய புதுப்பிப்பை விரும்புகிறேன் !!</td>\n","      <td>positive</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["   origin_index  ...  trained_sentiment\n","0             0  ...           positive\n","\n","[1 rows x 6 columns]"]},"metadata":{"tags":[]},"execution_count":46}]},{"cell_type":"markdown","metadata":{"id":"2BB-NwZUoHSe"},"source":["# 5. Lets save the model"]},{"cell_type":"code","metadata":{"id":"bZZpObLOtqo8","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1620197205863,"user_tz":-300,"elapsed":1500368,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"39482b53-c621-44cd-aada-27e0e9fa5ab0"},"source":["stored_model_path = './models/classifier_dl_trained' \n","fitted_pipe.save(stored_model_path)"],"execution_count":null,"outputs":[{"output_type":"stream","text":["Stored model in ./models/classifier_dl_trained\n"],"name":"stdout"}]},{"cell_type":"markdown","metadata":{"id":"e_b2DPd4rCiU"},"source":["# 6. Lets load the model from HDD.\n","This makes Offlien NLU usage possible!   \n","You need to call nlu.load(path=path_to_the_pipe) to load a model/pipeline from disk."]},{"cell_type":"code","metadata":{"id":"SO4uz45MoRgp","colab":{"base_uri":"https://localhost:8080/","height":80},"executionInfo":{"status":"ok","timestamp":1620197486850,"user_tz":-300,"elapsed":143939,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"9bd3f8e1-fcf7-4068-91d5-ef25eadd2ba6"},"source":["stored_model_path = './models/classifier_dl_trained' \n","hdd_pipe = nlu.load(path=stored_model_path)\n","\n","preds = hdd_pipe.predict('I hate the newest update')\n","preds"],"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style scoped>\n","    .dataframe tbody tr th:only-of-type {\n","        vertical-align: middle;\n","    }\n","\n","    .dataframe tbody tr th {\n","        vertical-align: top;\n","    }\n","\n","    .dataframe thead th {\n","        text-align: right;\n","    }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","  <thead>\n","    <tr style=\"text-align: right;\">\n","      <th></th>\n","      <th>document</th>\n","      <th>origin_index</th>\n","      <th>text</th>\n","      <th>sentiment</th>\n","      <th>sentiment_confidence</th>\n","      <th>sentence_embedding_from_disk</th>\n","      <th>sentence</th>\n","    </tr>\n","  </thead>\n","  <tbody>\n","    <tr>\n","      <th>0</th>\n","      <td>I hate the newest update</td>\n","      <td>8589934592</td>\n","      <td>I hate the newest update</td>\n","      <td>[negative]</td>\n","      <td>[0.9999902]</td>\n","      <td>[[-0.04603002965450287, 0.03271652013063431, 0...</td>\n","      <td>[I hate the newest update]</td>\n","    </tr>\n","  </tbody>\n","</table>\n","</div>"],"text/plain":["                   document  ...                    sentence\n","0  I hate the newest update  ...  [I hate the newest update]\n","\n","[1 rows x 7 columns]"]},"metadata":{"tags":[]},"execution_count":1}]},{"cell_type":"code","metadata":{"id":"e0CVlkk9v6Qi","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1620197486852,"user_tz":-300,"elapsed":143923,"user":{"displayName":"ahmed lone","photoUrl":"","userId":"02458088882398909889"}},"outputId":"6c1bbd08-44c4-4d23-d642-5976ae35e3d6"},"source":["hdd_pipe.print_info()"],"execution_count":null,"outputs":[{"output_type":"stream","text":["The following parameters are configurable for this NLU pipeline (You can copy paste the examples) :\n",">>> pipe['document_assembler'] has settable params:\n","pipe['document_assembler'].setCleanupMode('shrink')              | Info: possible values: disabled, inplace, inplace_full, shrink, shrink_full, each, each_full, delete_full | Currently set to : shrink\n",">>> pipe['sentence_detector@SentenceDetectorDLModel_c83c27f46b97'] has settable params:\n","pipe['sentence_detector@SentenceDetectorDLModel_c83c27f46b97'].setExplodeSentences(False)  | Info: whether to explode each sentence into a different row, for better parallelization. Defaults to false. | Currently set to : False\n","pipe['sentence_detector@SentenceDetectorDLModel_c83c27f46b97'].setStorageRef('SentenceDetectorDLModel_c83c27f46b97')  | Info: storage unique identifier | Currently set to : SentenceDetectorDLModel_c83c27f46b97\n","pipe['sentence_detector@SentenceDetectorDLModel_c83c27f46b97'].setEncoder(com.johnsnowlabs.nlp.annotators.sentence_detector_dl.SentenceDetectorDLEncoder@73da39db)  | Info: Data encoder | Currently set to : com.johnsnowlabs.nlp.annotators.sentence_detector_dl.SentenceDetectorDLEncoder@73da39db\n","pipe['sentence_detector@SentenceDetectorDLModel_c83c27f46b97'].setImpossiblePenultimates(['Bros', 'No', 'al', 'vs', 'etc', 'Fig', 'Dr', 'Prof', 'PhD', 'MD', 'Co', 'Corp', 'Inc', 'bros', 'VS', 'Vs', 'ETC', 'fig', 'dr', 'prof', 'PHD', 'phd', 'md', 'co', 'corp', 'inc', 'Jan', 'Feb', 'Mar', 'Apr', 'Jul', 'Aug', 'Sep', 'Sept', 'Oct', 'Nov', 'Dec', 'St', 'st', 'AM', 'PM', 'am', 'pm', 'e.g', 'f.e', 'i.e'])  | Info: Impossible penultimates | Currently set to : ['Bros', 'No', 'al', 'vs', 'etc', 'Fig', 'Dr', 'Prof', 'PhD', 'MD', 'Co', 'Corp', 'Inc', 'bros', 'VS', 'Vs', 'ETC', 'fig', 'dr', 'prof', 'PHD', 'phd', 'md', 'co', 'corp', 'inc', 'Jan', 'Feb', 'Mar', 'Apr', 'Jul', 'Aug', 'Sep', 'Sept', 'Oct', 'Nov', 'Dec', 'St', 'st', 'AM', 'PM', 'am', 'pm', 'e.g', 'f.e', 'i.e']\n","pipe['sentence_detector@SentenceDetectorDLModel_c83c27f46b97'].setModelArchitecture('cnn')  | Info: Model architecture (CNN) | Currently set to : cnn\n",">>> pipe['bert_sentence@labse'] has settable params:\n","pipe['bert_sentence@labse'].setBatchSize(8)                      | Info: Size of every batch | Currently set to : 8\n","pipe['bert_sentence@labse'].setCaseSensitive(False)              | Info: whether to ignore case in tokens for embeddings matching | Currently set to : False\n","pipe['bert_sentence@labse'].setDimension(768)                    | Info: Number of embedding dimensions | Currently set to : 768\n","pipe['bert_sentence@labse'].setMaxSentenceLength(128)            | Info: Max sentence length to process | Currently set to : 128\n","pipe['bert_sentence@labse'].setIsLong(False)                     | Info: Use Long type instead of Int type for inputs buffer - Some Bert models require Long instead of Int. | Currently set to : False\n","pipe['bert_sentence@labse'].setStorageRef('labse')               | Info: unique reference name for identification | Currently set to : labse\n",">>> pipe['sentiment_dl@labse'] has settable params:\n","pipe['sentiment_dl@labse'].setThreshold(0.6)                     | Info: The minimum threshold for the final result otheriwse it will be neutral | Currently set to : 0.6\n","pipe['sentiment_dl@labse'].setThresholdLabel('neutral')          | Info: In case the score is less than threshold, what should be the label. Default is neutral. | Currently set to : neutral\n","pipe['sentiment_dl@labse'].setClasses(['positive', 'negative'])  | Info: get the tags used to trained this SentimentDLModel | Currently set to : ['positive', 'negative']\n","pipe['sentiment_dl@labse'].setStorageRef('labse')                | Info: unique reference name for identification | Currently set to : labse\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"wFDFEaHHSXmY"},"source":[""],"execution_count":null,"outputs":[]}]}